<?php


namespace app\controller\v1;


use app\model\Collect;
use think\facade\Cache;
use think\Request;

/**
 * 操作
 * Class Operate
 * @package app\controller\v1
 */
class Operate
{
    public function __construct(Collect $collect)
    {
        $this->model = $collect;
    }

    /**
     * 收藏
     * @param Request $request
     * @param Collect $collect
     * @return mixed
     */
    public function Collect(Request $request)
    {
        return $this->model->collect($request);
    }


    /**
     * 收藏列表
     * @param Request $request
     * @return mixed
     */
    public function CollectList(Request $request)
    {
        return $this->model->CollectList($request);
    }

    /**
     * 收藏列表
     * @param Request $request
     * @return mixed
     */
    public function CollectDel(Request $request)
    {
        return $this->model->CollectDel($request);
    }


    /**
     * 视频选择
     * @return mixed
     */
    public function VideoChoose()
    {
        return $this->model->VideoChoose();
    }


    /**
     * 上传图片
     */
    public function photo(){
        return $this->model->VideoChoose();
    }

}